Command Line to list / cancel print jobs / Example?
Under Windows 11, 10, .... and MS Server OS, you can also quite easily list the print jobs via the command line (abort / stop)!
For this purpose, the WMIC PRINTJOB command is very well suited to conveniently print these for larger lists of print jobs.
Use:
to see all print jobs!
wmic printjob get
To list all print jobs!
wmic printjob list
To delete all print jobs!
wmic printjob delete
PRINTJOB COMMANDS / OPTIONS
ColorConsole [Version 2.6.1001 ]
Microsoft Windows [Version 10.1.1804]
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
C:\Windows\system32>WMIC PRINTJOB /?
PRINTJOB - Print job management.
HINT: BNF for Alias usage.
( [WMIObject] | [] |
[] ) [].
USAGE:
PRINTJOB ASSOC []
PRINTJOB CALL []
PRINTJOB CREATE
PRINTJOB DELETE
PRINTJOB GET [] []
PRINTJOB LIST [] []
C:\Windows\system32>
PRINTJOB LIST COMMANDS
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>WMIC PRINTJOB LIST /?
Property list operations.
USAGE:
LIST [] []
The following LIST formats are available:
BRIEF - Document, JobId, JobStatus, Owner, Priority, Size, N
ame
FULL - DataType, Description, Document, DriverName, Elapsed
Time, HostPrintQueue, InstallDate, JobId, JobStatus, Name, Notify, Owner, PagesP
rinted, Parameters, PrintProcessor, Priority, Size, StartTime, Status, StatusMas
k, TimeSubmitted, TotalPages, UntilTime, DriverName, Name
INSTANCE - JobId
STATUS - Document, JobId, JobStatus, Name, PagesPrinted, Stat
us, JobIdCopy, Name
The following LIST switches are available:
/TRANSLATE: - Translate output via values from.
/EVERY: [/REPEAT:] - Returns value every (X interval) se
conds, If /REPEAT specified the command is executed times.
/FORMAT: - Keyword/XSL filename to process the XML results.
NOTE: Order of /TRANSLATE and /FORMAT switches influences the appearance of outp
ut.
Case1: If /TRANSLATE precedes /FORMAT, then translation of results will be follo
wed by formatting.
Case2: If /TRANSLATE succeeds /FORMAT, then translation of the formatted results
will be done.
C:\Windows\system32>
The solution is quite easy to move with Powershell and / or cmd.exe files, or folders, here with examples Moving files sometimes makes more sense at the
The solution is quite simple to use the cmd.exe command line to change the date or time Changing the date or time is sometimes quicker via the command line
There are commands to control the power settings under Windows, it makes sense if you want to change them by batch file on Windows 12, 11, 10, etc. OS Here
Also during the command input you can change the CMD background color by command and the text, here an example The color values can be indicated by two
The solution is simple to disable and enable SmartScreen via CMD BATCH command and command prompt Contents: 1. Deactivating the Smart Screen when browsing
This website does not store personal data. However, third-party providers are used to display ads, which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF). The CMP ID is 300 and can be individually customized at the bottom of the page. more Infos & Privacy Policy ....